<script setup>
import { onLaunch, onShow, onHide } from '@dcloudio/uni-app'
import { useSystemStore } from '@/stores/system'

const systemStore = useSystemStore()

onLaunch(() => {
  const { statusBarHeight = 20 } = uni.getSystemInfoSync() || {}
  systemStore.setStatusBarHeight(statusBarHeight || 20)
  console.log('App Launch')
})

onShow(() => {
  console.log('App Show')
})

onHide(() => {
  console.log('App Hide')
})
</script>

<style lang="scss">
/*每个页面公共css */
body {
  background: #fff;
}

/* 引入 uView Plus 基础样式 */
@import 'uview-ui-next/index.scss';
</style>
